// app.js
App({
    onLaunch:function() {
        // 展示本地存储能力
        var that=this;
        if(!wx.getStorageSync('userInfo')) {
            wx.navigateTo({
                url: '../../pages/login/index',
            })
        } else {
            that.globalData.userInfo=wx.getStorageSync('userInfo');
        }
    },
    onHide(){
    },
    globalData: {
        // 当前小程序适用的设备型号
        systemEquipmentType: 'tj02',
        systemEquipmentTypeName: '多参数监测仪',
        userInfo: {
            phone: null,
            equipmentNo:null,
            equipmentType:null
        },
        imgurl:'https://sj.changjkj.com/weixin/songjian/images/',
        audiourl:'https://sj.changjkj.com/weixin/songjian/voice/warn.mp3',
        url: 'http://localhost:8089/', 
        // url: 'https://sj.changjkj.com/', 
        // 设备详情页面中，是否开启静音
        isMute: false,
    }
})
